﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MM.Commmon.UI
{
    public class LoadUI
    {
        private static FrmProcessing _loadingForm;

        // Methods
        public static void CloseLoad()
        {
            if (_loadingForm != null)
            {
                _loadingForm.Close();
                _loadingForm = null;
            }
        }

        public static void Guage(string strDispose, int point)
        {
            if (_loadingForm != null)
            {
                _loadingForm.Guage(strDispose, point);
            }
        }

        public static void ShowLoad()
        {
            if (_loadingForm == null)
            {
                _loadingForm = new FrmProcessing();
                _loadingForm.Show();
            }
        }
    }
}
